using Demo.API.Models;
using Microsoft.AspNetCore.Mvc;

namespace Demo.API.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class WeatherForecastController : ControllerBase
    {

        [HttpGet]
        public IActionResult Get(int id)
        {
            if (id == 0)
                return NotFound();
            return Ok (new object());
        }

        [HttpGet]
        public ActionResult GetByID(int id)
        {
            return Ok(new Product { Id = 1, Name = "jack" });   
        }


    }
}
